<?


require_once  $_SERVER['DOCUMENT_ROOT']."/../_lib/base/common.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.template.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.user_auth.php";

	// See if user is logged in 
	$user_auth = new user_auth();
	$user_auth->user_auth_cp();

	$template = new template();
	$template->head_booking();

// FUNCTION // Show home page ==========================================
function display_home(){	
?>


<h2>Welcome</h2>





<h3>Quick Reference Lookup</h3>

<? if(isset($GLOBALS['msg'])) echo "<div class='note'><p>".$GLOBALS['msg']."</p></div>"; ?>


<form action="holiday_references.php" method="get">

	<input type="hidden" name="action" value="search" />

	<table class="libra">
		<tr>
			<td width="150"><strong>Booking reference:</strong></td>
			<td><input type="text" name="reference_id" value="<?= $_REQUEST['reference_id'] ?>"></td>
		</tr>
		<tr>
        <td></td>
			<td><input type="submit" value="submit" class="form_button"></td>
		</tr>
	</table>


</form>





<?
}
// END FUNCTION =================================================





switch ($_REQUEST['action']){
	default:
		display_home();
	break;
}
	


$template->foot_booking(); 
?>

